#include <iostream>
#include <fstream>
using namespace std;
int main()
{
    ifstream in("filestream.cpp");
    ofstream out("file");
    string s;
    while (getline(in, s)) //Discard newline char
    {
        out << s << endl
            << "\n";
    }
}